import Son from './Son';
import { useState } from 'react'
function Father() {
    const [showContent, setShowContent] = useState(true)
    return <div>
        <Son showContent={showContent} />
        <button onClick={() => setShowContent(!showContent)}>控制子组件文案展示</button>
    </div>
}

export default Father